.container {
	width: 100%;
	height: 70vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.header {
	width: 100%;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;

	.title {
		width: 230px;
		height: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;


		.logo {
			font-size: 24px;
		}

		.logo-text {
			font-size: 20px;
		}

		.clear-btn {
			position: absolute;
			right: 25px;
			top: -1px;
			border: none;
			background-color: none;
		}
	}
}

.content {
	flex: 1;
	overflow-y: auto;

	.content-state {
		text-align: center;

	}

	.content-user {
		p {
			margin: 0;
			padding: 8px 12px;
			max-width: 500px;
			border-radius: 12px 12px 0 12px;
			background-color: rgb(26, 184, 26);
			color: white;
		}

		/* 图片容器样式 */
		.image-container {
			margin: 0;
			padding: 4px;
			max-width: 500px;
			border-radius: 12px 12px 0 12px;
			background-color: rgb(26, 184, 26);
			display: inline-block;
		}

		/* 聊天图片样式 */
		.chat-image {
			max-width: 100%;
			max-height: 300px;
			border-radius: 8px;
			display: block;
		}
	}

	.content-assistant {
		p {
			margin: 23px 0 0 5px;
			padding: 8px 12px;
			max-width: 500px;
			border-radius: 0 12px 12px 12px;
			background-color: rebeccapurple;
			color: white;
		}

		/* 图片容器样式 */
		.image-container {
			margin: 23px 0 0 5px;
			padding: 4px;
			max-width: 500px;
			border-radius: 0 12px 12px 12px;
			background-color: rebeccapurple;
			display: inline-block;
		}

		/* 聊天图片样式 */
		.chat-image {
			max-width: 100%;
			max-height: 300px;
			border-radius: 8px;
			display: block;
		}
	}
}

/* 图片预览容器 */
.image-preview-container {
	width: 100%;
	padding: 10px;
	background-color: #f5f5f5;
	border-radius: 8px;
	margin-bottom: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

/* 预览图片样式 */
.preview-image {
	max-width: 100%;
	max-height: 200px;
	border-radius: 8px;
	object-fit: contain;
}

/* 取消预览按钮 */
.cancel-preview {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: rgba(255, 255, 255, 0.8);
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 12px;
	color: #333;
}

.footed {
	width: 100%;
	height: 70px;

	.chart-form {
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-radius: 30px;
		outline: 1px solid #ccc;
		padding: 3px;
		box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
		position: relative;
	}

	.message-input {
		border: none;
		outline: none;
		background: node;
		height: 50px;
		padding: 0 18px;
		font-size: 18px;
		width: 600px;
	}

	/* 上传按钮样式 */
	.upload-btn {
		width: 50px;
		height: 50px;
		border-radius: 50%;
		color: white;
		font-size: 18px;
		border: none;
		background-color: #6D4FC2;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-right: 0px;
		position: absolute;
		right: 90px;
	}

	.upload-btn:hover {
		background-color: #593bab;
	}

	.upload-btn:disabled {
		opacity: 0.5;
		cursor: not-allowed;
	}

	.message-send {
		width: 80px;
		/* display: none; */
		height: 50px;
		border-radius: 30px;
		cursor: pointer;
		border: none;
		color: white;
		background-color: #6D4FC2;

		.sendbtn {
			margin-left: 5px;
		}
	}

	.message-send:disabled {
		opacity: 0.7;
		cursor: not-allowed;
	}
}

.message-send:hover {
	background-color: #593bab;
}

.chart-form:focus-within {
	outline: 2px solid #6D4FC2;
}

/* .message-input:valid~.message-send {
	display: inline-block;
	align-items: center;
	justify-content: center;
} */
.DockerOutlined {
	font-size: 29px;
	color: blue;
}

/* 移动端适配 */
@media (max-width: 768px) {
	.container {
		height: 75vh;
		padding: 8px;
	}

	.header .title {
		width: auto;
		padding: 0 12px;
	}

	.content-user p,
	.content-assistant p,
	.content-user .image-container,
	.content-assistant .image-container {
		max-width: 85vw;
		font-size: 14px;
	}

	.chat-image {
		max-height: 200px;
	}

	.image-preview-container {
		padding: 8px;
	}

	.preview-image {
		max-height: 150px;
	}

	.footed {
		height: 64px;
	}

	.chart-form {
		gap: 8px;
		padding: 6px;
	}

	.message-input {
		width: auto;
		flex: 1;
		min-width: 0;
		height: 44px;
		font-size: 16px;
	}

	.upload-btn {
		width: 36px;
		height: 36px;
		min-width: 36px;
	}

	.message-send {
		width: 72px;
		height: 44px;
		font-size: 12px;
	}
}